<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="app">
    {{Name}}
</div>
</body>
<script src="../lib/vue.js"></script>
<script>
    vm = new Vue({
        el: ".app",
        data: {
            name: 'zyd'
        },
        computed: {
            Name: {
                get: function () {
                    return this.name + '你的名字'
                },
                set: function (NewValue) {
                    this.name = NewValue
                }
            }
        }
    })
    console.log(vm.Name)  //zyd你的名字
    vm.Name = 'cmy'


</script>
</html>